build: Override systemd unit directory for distcheck
authorDan Nicholson <nicholson@endlessm.com>
Mon, 27 Jun 2016 20:06:23 +0000 (13:06 -0700)
committerAtomic Bot <atomic-devel@projectatomic.io>
Mon, 27 Jun 2016 20:20:21 +0000 (20:20 +0000)
distcheck tests that all the files are installed under $prefix. That
doesn't work with the systemd unit directory since the path comes from
pkg-config. Override the setting to be under $prefix in that case.

Closes: #372
Approved by: cgwalters

Makefile-boot.am

index 8b62d1bae5d04741b93b53265e9de691a890c84c..508f59bcab1a2698b8271b5695ded294bf01c088 100644 (file)
@@ -38,6 +38,9 @@ endif
 if BUILDOPT_SYSTEMD
 systemdsystemunit_DATA = src/boot/ostree-prepare-root.service \
        src/boot/ostree-remount.service
+
+# Allow the distcheck install under $prefix test to pass
+AM_DISTCHECK_CONFIGURE_FLAGS += --with-systemdsystemunitdir='$${libdir}/systemd/system'
 endif
 
 if !BUILDOPT_BUILTIN_GRUB2_MKCONFIG